<!DOCTYPE html>
<html>
<head>
<title>支付结果</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=0.5, maximum-scale=1.0, user-scalable=no">
<link href="../../resources/css/pay.css" rel="stylesheet">
<style>
	.result-ctn {
		width: 320px;
		margin: 0 auto;
		padding-top: 100px;
		text-align: center;
	}

	.tips {
		color: #333;
		text-align: center;
		font-size: 24px;
		width: 100%;
		margin: 24px 0 16px;
	}
	.more-msg{			
		text-align: left;
		padding-left: 90px;
		color: #666;
		line-height: 1.5;

	}

	.result-ctn img {
		text-align: center;
	}
</style>
</head>
<body>
	<div class="pc-header">
		<!-- logo导航栏-->
		<div class="header_nav">
			<div class="header_nav-ctn">
				<div class="logo">
					<img class="logo-img" src="../../resources/images/yyfax-logo.png">
					<span class="logo-text">认证支付 <# if paymentName??> (${paymentName}) </#></span>
				</div>
			</div>
		</div>
		<!-- logo导航栏-->
	</div>
	<div class="yy-navbar ng-scope">
		<div class="navbar-row">
			<div class="navbar-left">
				<!--<a class="btn-back" ng-click="goBackClick()">
					<i class="arrow_border_icon arrow_left"></i><span>返回</span>
				</a>-->
			</div>
			<div class="navbar-title navbar-center" style>
				<span class="ng-binding" ng-bind="pageTitle">认证支付<# if paymentName??> (${paymentName}) </#></span>
			</div>
		</div>
	</div>
	<div class="contain-main">
		<div class="result-ctn">						
		<#if isSuccess="">
			<img id="success" src="../../resources/images/result-suc.png">
			<div class="tips">支付成功</div>
			<div class="more-msg">正在跳转....</div>
			<a class="sub-btn" href="${returnUrl}" style="display:node">返回</a>
		<#else>
			<img id="fail" src>
			<div class="tips">支付失败</div>
			<div class="more-msg">错误代码：${rsp.code}</div>
			<div class="more-msg">失败原因：${rsp.message}</div>			
		</#else></#if>
			<div class="btn-opr">
				<a class="sub-btn" href="${orderUrl}">返回</a>
			</div>
		</div>
	</div>
	<script src="../../resources/js/jquery/jquery-1.11.3.min.js" type="text/javascript"></script>
	<script src="../../resources/js/common.js" type="text/javascript"></script>
	<script>
		if(util.isMobile){
			$('#fail').src('../../resources/images/result-fail-h5.png');
		}else{
			$('#fail').src('../../resources/images/result-fail.png');
		}
		if($('#success').length>0){
			setTimeout(function(){
				('.sub-btn').click();
			},5000);
		}
	</script>
</body>
</html>